﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Entities
{
    public enum TypeNotification
    {
        AppelServeur,
        PlatSuivant,
        CuistotOwner,
        PlatPret,
        FinRepas,
        Autre
    }

    public partial class Notification
    {
        //wrappers
        public TypeNotification getType()
        {
            switch (this.Type)
            {
                case "AppelServeur":
                    return TypeNotification.AppelServeur;
                case "PlatSuivant":
                    return TypeNotification.PlatSuivant;
                case "CuistotOwner":
                    return TypeNotification.CuistotOwner;
                case "PlatPret":
                    return TypeNotification.PlatPret;
                case "FinRepas":
                    return TypeNotification.FinRepas;
                default:
                    return TypeNotification.Autre;
            }
        }
        public void setType(TypeNotification type)
        {
            this.Type = type.ToString();
        }   

    }
}
